﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataModel;
using System.Data;
using System.Data.SqlClient;

namespace WebNull
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                DataModel.dsProduct ds = new dsProduct();
                DataModel.dsProductTableAdapters.catproductTableAdapter t = new DataModel.dsProductTableAdapters.catproductTableAdapter();

                t.Fill(ds.catproduct);


                this.GridView1.DataSource = ds.catproduct;
                GridView1.DataKeyNames = new string[] { "id" };
                this.GridView1.DataBind();

            }
        
        }
        protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
        {

        }

        protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        {

        }

        protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
     
         
        }
    }
}